registerTests([
function Select_Test_0()
{
	var myArray = [{x: 1}, {x: 3}, {x: 4}, {x: 4}, {x: 4}, {x: 5}];
	var result = myArray.Select("o => o.x");
	
	Assert.areEqual(result.length, 6);
	Assert.areEqual(result[0], 1);
	Assert.areEqual(result[1], 3);
	Assert.areEqual(result[2], 4);
	Assert.areEqual(result[3], 4);
	Assert.areEqual(result[4], 4);
	Assert.areEqual(result[5], 5);
},
function Select_Test_1()
{
	var myArray = [{x: 1}, {x: 3}, {x: 4}, {x: 4}, {x: 4}, {x: 5}];
	var result = myArray.Select("(o, i) => o.x + i");
	
	Assert.areEqual(result.length, 6);
	Assert.areEqual(result[0], 1);
	Assert.areEqual(result[1], 4);
	Assert.areEqual(result[2], 6);
	Assert.areEqual(result[3], 7);
	Assert.areEqual(result[4], 8);
	Assert.areEqual(result[5], 10);
},
]);